package com.yc.navy.goods.dto;

public class AddressInfoDTODTO{
	private long aid;
	private Integer mid;
	private Integer astatus;
	
	@Override
	public String toString() {
		return "AddressInfoDTO [aid=" + aid + ", mid=" + mid + ", astatus=" + astatus + "]";
	}

	public long getAid() {
		return aid;
	}

	public void setAid(long aid) {
		System.out.println("aid = " + aid + "long***");
		this.aid = aid;
	}

	public Integer getMid() {
		return mid;
	}

	public void setMid(Integer mid) {
		this.mid = mid;
	}

	public Integer getAstatus() {
		return astatus;
	}

	public void setAstatus(Integer astatus) {
		this.astatus = astatus;
	}
	
	public AddressInfoDTODTO(long aid, Integer mid, Integer astatus) {
		super();
		this.aid = aid;
		this.mid = mid;
		this.astatus = astatus;
	}
	
	public AddressInfoDTODTO() {
		super();
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + (int) (aid ^ (aid >>> 32));
		result = prime * result + ((astatus == null) ? 0 : astatus.hashCode());
		result = prime * result + ((mid == null) ? 0 : mid.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		AddressInfoDTODTO other = (AddressInfoDTODTO) obj;
		if (aid != other.aid)
			return false;
		if (astatus == null) {
			if (other.astatus != null)
				return false;
		} else if (!astatus.equals(other.astatus))
			return false;
		if (mid == null) {
			if (other.mid != null)
				return false;
		} else if (!mid.equals(other.mid))
			return false;
		return true;
	}
}
